package ${package.Service};

import io.github.talelin.latticy.dto.${table.entityPath}.CreateOrUpdate${entity}DTO;
import ${package.Entity}.${entity}DO;
import java.util.List;

/**
* @author vvboy
*/
public interface ${table.serviceName} {

    boolean create${entity}(CreateOrUpdate${entity}DTO validator);
    boolean update${entity}(${entity}DO ${table.serviceName}, CreateOrUpdate${entity}DTO validator);
    ${entity}DO getById(Integer id);
    List<${entity}DO> findAll();
    boolean deleteById(Integer id);

}
